﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ParkingLot.Entitys.Messages
{

    /// <summary>
    /// 一个消息基类  .NET程序能够根据类的Guid 反射得到类
    /// </summary>
    [Serializable]
    public  class MessageBase : ICommunicationMessage
    {

        /// <summary>
        /// 类的ID
        /// </summary>
        public Guid ClassId
        {
            private set; get;
        }

        public MessageBase()
        {
            ClassId = this.GetType().GUID;
        }
    }
}
